package org.toonan.rental.chart;

import android.content.Context;
import android.content.Intent;
import android.view.View;

public class ButtonListener implements View.OnClickListener
{
	Context context;
	
	public ButtonListener(Context paramContext)
	{
		this.context = paramContext;
	}
	
	public void onClick(View paramView)
	{
		switch (paramView.getId())
		{
			default:
			case R.id.button1:
				Intent localIntent4 = new Intent(this.context, BarChartActivity.class);
				localIntent4.setFlags(67108864);
				this.context.startActivity(localIntent4);
			case R.id.button2:
				Intent localIntent3 = new Intent(this.context, PieChartActivityGroup.class);
				localIntent3.setFlags(67108864);
				this.context.startActivity(localIntent3);
			case R.id.button3:
				Intent localIntent2 = new Intent(this.context, ThreadChartActivity.class);
				localIntent2.setFlags(67108864);
				this.context.startActivity(localIntent2);
			case R.id.button4:
				Intent localIntent1 = new Intent(this.context, ChartMainActivity.class);
				localIntent1.setFlags(67108864);
				this.context.startActivity(localIntent1);
		}
	}
}